OPC Studio User's Guide and Reference
Generic data kinds
Concepts > OPC Data Client Concepts > OPC Data Client Extensions > OPC Data Client Integrated Extensions > OPC UA Complex Data Extension > Generic data and data types > Working with generic data > Generic data kinds

Generic data can be of several different kinds: enumeration, opaque, primitive, sequence, structured, or union. You can determine the kind of generic data you are dealing with either by testing it actual type, or using its DataTypeKind Property. The following table describes the generic data kinds available, and their associated concrete generic data classes.

DataTypeKind member Associated generic data class
Enumeration EnumerationData Class
Opaque OpaqueData Class
Primitive PrimitiveData Class
Sequence SequenceData Class
Structured StructuredData Class
Union UnionData Class
In data type dictionary model (the only model before OPC UA 1.04), union data is not directly available. A union can, however, be quite efficiently modeled using an appropriately formed structure with optional fields.

For each kind of data type, there is also an associated data type class. See Generic Data Type Kinds for more details. Note that if there is a data type associated with the generic data (by the means of non-null reference in its DataType Property), the kind of generic data always equals to the kind of the associated data type - this is guaranteed.   

Here you will find more information to the specific data kinds:

The following class diagram shows the generic data classes and their relevant members:

 

See Also

Reference

Recommended